﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    public class Person
    {
        [DataMember]
        private int id;
        [DataMember]
        private string fName;
        [DataMember]
        private string lName;
        [DataMember]
        private string email;
        [DataMember]
        private string phone;
        [DataMember]
        private int postalcode;
        [DataMember]
        private string city;
        [DataMember]
        private string password;

        public Person(string fName, string lName, string email, string phone, int postalcode, string city, string password)
        {
            this.fName = fName;
            this.lName = lName;
            this.email = email;
            this.phone = phone;
            this.postalcode = postalcode;
            this.city = city;
            this.password = password;
        }

        public Person(int id, string fName, string lName, string email, string phone, int postalcode, string city, string password)
        {
            this.id = id;
            this.fName = fName;
            this.lName = lName;
            this.email = email;
            this.phone = phone;
            this.postalcode = postalcode;
            this.city = city;
            this.password = password;
        }

        public Person(int id, string fName, string lName)
        {
            this.id = id;
            this.fName = fName;
            this.lName = lName;
        }

        public Person(string fName, string lName, string email, string phone, string password)
        {
            this.fName = fName;
            this.lName = lName;
            this.email = email;
            this.phone = phone;
            this.password = password;
        }
        public Person(int id, string fName, string lName, string email, string phone, string password)
        {
            this.id = id;
            this.fName = fName;
            this.lName = lName;
            this.email = email;
            this.phone = phone;
            this.password = password;
        }

        [DataMember]
        public int Id
        {
            get{ return this.id; }
            set{ this.id = value; }
        }

        [DataMember]
        public string FName
        {
            get { return this.fName; }
            set { this.fName = value; }
        }

        [DataMember]
        public string LName
        {
            get { return this.lName; }
            set { this.lName = value; }
        }

        [DataMember]
        public string Email
        {
            get { return this.email; }
            set { this.email = value; }
        }

        [DataMember]
        public string Phone
        {
            get { return this.phone; }
            set { this.phone = value; }
        }

        [DataMember]
        public int Postalcode
        {
            get { return this.postalcode; }
            set { this.postalcode = value; }
        }

        [DataMember]
        public string City
        {
            get { return this.city; }
            set { this.city = value; }
        }

        [DataMember]
        public string Password
        {
            get { return this.password; }
            set { this.password = value; }
        }
    }
}
